100.toString vs 100['toString']

Posted by dorelal on Stack Overflow See other posts from Stack Overflow or by dorelal
Published on 2010-03-11T22:09:42Z Indexed on 2010/03/12 0:37 UTC
Read the original article Hit count: 352

Filed under:
100['toString'] //does not fail
100.toString //fails

why?

100.toString is not same as 100.toString() . So why in the second case I am not getting the function as returned value?

© Stack Overflow or respective owner

Related posts about JavaScript